import { createApp } from "vue";
import "./style/global.scss";
import App from "./App.vue"; //如果这里报错 在vite-env.d.ts中添加一段代码 (本项目已添加，可以去查看)

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import Router from "./router/permission";
import pinia from "@/stores";
const app = createApp(App);

app.use(pinia);

// 全局添加图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(ElementPlus);
app.use(Router);

// window.requestAnimationFrame(()=>{
//   console.log(123)
// })



app.mount("#app");
